package ljl.codetop2;

import commons.TreeNode;
import ljl.alg.codec.TestRsa;

public class _226_invert_tree {

    static class a {
        public TreeNode invertTree(TreeNode root) {
            if (root == null) return null;
            TreeNode left = invertTree(root.left);
            root.left = invertTree(root.right);
            root.right = left;
            return root;
        }
    }
}
